import request from '@/utils/request'

// 问题新增
export function saveIssue(data) {
    return request({
      data,
      url: '/back/issue/saveIssue',
      method: 'post'
    })
}
// 问题查询
export function findIssue(data) {
    return request({
      data,
      url: '/back/issue/findIssue',
      method: 'post'
    })
}
// 问题修改
export function updIssue(data) {
    return request({
      data,
      url: '/back/issue/updIssue',
      method: 'post'
    })
}

// 查询问题性质列表
export function findIssueNature(data) {
  return request({
    data,
    url: '/issue-nature/findIssueNature',
    method: 'post'
  })
}

// 新增问题性质列表
export function issueNatureAdd(data) {
  return request({
    data,
    url: '/issue-nature/add',
    method: 'post'
  })
}

// 修改问题性质列表
export function issueNatureEdit(data) {
  return request({
    data,
    url: '/issue-nature/edit',
    method: 'post'
  })
}

// 删除问题性质列表
export function issueNatureDelete(data) {
  return request({
    data,
    url: '/issue-nature/delete',
    method: 'post'
  })
}

// 投诉问题查询
export function complaintSel(params) {
  return request({
    params,
    url: '/complaint/sel',
    method: 'post'
  })
}

// 投诉问题查询 新增
export function complaintAdd(params) {
  return request({
    params,
    url: '/back/complaint/add',
    method: 'post'
  })
}

// 投诉问题查询 修改
export function complaintUpd(params) {
  return request({
    params,
    url: '/complaint/upd',
    method: 'post'
  })
}

// 投诉问题查询 删除
export function complaintDel(params) {
  return request({
    params,
    url: '/complaint/del',
    method: 'post'
  })
}

// 质量预警维护 查询
export function warningFind(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning/find',
    method: 'post'
  })
}

// 质量预警维护 新增
export function warningSave(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning/save',
    method: 'post'
  })
}

// 质量预警维护 修改
export function warningUpd(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning/upd',
    method: 'post'
  })
}

// 质量预警维护 删除
export function warningDel(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning/del',
    method: 'post'
  })
}

// 质量预警记录 查询
export function infoFind(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning-info/find',
    method: 'post'
  })
}

// 质量预警记录 新增
export function infoSave(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning-info/save',
    method: 'post'
  })
}


// 质量预警记录 修改
export function infoUpd(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning-info/upd',
    method: 'post'
  })
}


// 质量预警记录 删除
export function infoDel(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning-info/del',
    method: 'post'
  })
}

// 质量预警记录 复线
export function infoRecover(params) {
  return request({
    params,
    url: '/back/disqualification-early-warning-info/recover',
    method: 'post'
  })
}

// 质量问题分析/质量数据趋势 查询
export function chartData(params) {
  return request({
    params,
    url: '/back/disqualification/chartData',
    method: 'post'
  })
}

// 质量问题分析/质量问题分布 查询
export function problemDistribution(params) {
  return request({
    params,
    url: '/back/disqualification/problemDistribution',
    method: 'post'
  })
}

// 质量问题分析/质量问题分类 查询
export function problemClassification(params) {
  return request({
    params,
    url: '/back/disqualification/problemClassification',
    method: 'post'
  })
}
